package com.speedchina.permission.domain.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.speedchina.permission.domain.sys.entity.Resource;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 *  DTO 类
 * @author winter
 * @date 2021-04-07 15:19:42
 **/
@Data
@NoArgsConstructor
public class ResourceDTO extends Resource {
    @TableField(exist = false)
    private List<ResourceDTO> children;
    public ResourceDTO(String id){
        this.setId(id);
    }
}